<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>购物车页面</title>
</head>
<body>
    <h1>购物车页面</h1>

    <table>
        <thead>
            <tr>
                <th>商品序号</th>
                <th>商品名称</th>
                <th>商品图片</th>
                <th>商品价格</th>
                <th>购买数量</th>
                <th>商品总价</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {% for good in goods %}
            <tr>
                <th>{{forloop.counter0}}</th>
                <th>{{good.name}}</th>
                <th>
                    <img src={{good.imgsrc}} weight="100" height="100">
                </th>
                <th>{{good.price}}</th>
                <th>{{good.buy_count}}</th>
                <th>{{good.totalprice}}</th>
                <th>删除操作</th>
<!--                <th><a href="/goshopping/?gid={{good.gid}}"></a></th>-->
            </tr>
            {% endfor %}
        </tbody>

<!--        <tfoot>-->
<!--            <tr>-->
<!--                <th colspan="5">    &lt;!&ndash; 合并单元格 5个 &ndash;&gt;-->
<!--                    {% for item in pagelist %}-->
<!--                    <a href="/index/?page={{item}}">{{item}}</a>-->
<!--                    {% endfor %}-->
<!--                </th>-->
<!--            </tr>-->
        </tfoot>


    </table>
</body>
</html>